<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
</body>
<script>
    // 为抵抗洪水，战士连续作战89小时，编程计算共多少天零多少小时？
    var hours = 89;
    var day = parseInt(hours/24);
    var res_hours = hours % 24;
    console.log("共"+day+"天"+res_hours+"小时");
    // 小明要到美国旅游，可是那里的温度是以华氏度为单位记录的。
    var Fahrenheit = 80;
    var degree = 5/9.0*(Fahrenheit-32);
    console.log("华氏度为"+Fahrenheit+"    "+"摄氏度为"+degree.toFixed(3));
</script>
</html>